﻿namespace HutongGames.PlayMaker
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmColor : NamedVariable
    {
        [SerializeField]
        private Color value;

        public FsmColor()
        {
            this.value = Color.black;
        }

        public FsmColor(FsmColor source) : base(source)
        {
            this.value = Color.black;
            this.value = source.value;
        }

        public FsmColor(string name) : base(name)
        {
            this.value = Color.black;
        }

        public static implicit operator FsmColor(Color value)
        {
            FsmColor color2 = new FsmColor(string.Empty);
            color2.value = value;
            return color2;
        }

        public override string ToString()
        {
            return this.value.ToString();
        }

        public Color Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}

